package com.clps.designPatterns.chapter01.接口隔离原则;

/**
 * 客户端不应该依赖它不需要的接口,一个类对另一个类的依赖,应该建立在最小的接口上.
 */
public class demo01 {

    public static void main(String[] args) {

    }


}
interface  ReadBlog{
    String getBlog();
}
interface AdminBlog{
    Boolean insertBlog();
    Boolean updateBlog();
    Boolean deleteBlog();
}

class Reader implements  ReadBlog{

    @Override
    public String getBlog() {
        return null;
    }
}

class AdminUser implements  AdminBlog{

    @Override
    public Boolean insertBlog() {
        return null;
    }

    @Override
    public Boolean updateBlog() {
        return null;
    }

    @Override
    public Boolean deleteBlog() {
        return null;
    }
}